export const MOD_AGE = 'mod_age';
export const ADD_AGE = 'add_age';

export const modAge = (value) => ({
  type: MOD_AGE,
  value
});

export const addAge = () => (dispatch, getState) => {
  console.log(getState());
  setTimeout(() => {
    dispatch({
      type: ADD_AGE
    });
  }, 2000);
}